package com.itheima.project.face.impl;

import com.itheima.project.adapter.JsapiPayAdapter;
import com.itheima.project.adapter.NativePayAdapter;
import com.itheima.project.face.JsapiPayFace;
import com.itheima.project.vo.trade.TradingVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName JsapiPayFaceImpl.java
 * @Description jsapi支付face接口定义实现
 */
@Slf4j
@Component
public class JsapiPayFaceImpl implements JsapiPayFace {

    @Autowired
    JsapiPayAdapter jsapiPayAdapter;

    @Override
    public TradingVo createJsapiTrading(TradingVo tradingVo) {
        return jsapiPayAdapter.createJsapiTrading(tradingVo);
    }
}
